/*
 * 项目基础类
 * @author: huangzong
 */
const C = require('../common/common.js')

class Subject {
    constructor() {}

    /*
     * 打开基础设置页面
     */
    async openEditSubject(row) {
        return await C.openBrowserWindow('/editSubject', row, {
            transparent: true,
            frame: false,
            // openDevTools: true,
            width: 600,
            height: 319,
            useSpa: true,
            spaModel: 'shop'
        })
    }

    /*
     * 编辑项目
     */
    async editSubject(data) {
        return await C.ajax('/shop/subject/editsubject', data, 'post')
    }
}

module.exports = new Subject()